package com.byb.server.service.mapper.Wc;

import com.byb.server.domain.WcInsuranceType;
import com.byb.server.service.dto.Wc.WcITDTO;
import com.byb.server.service.mapper.EntityMapper;
import org.mapstruct.Mapper;

/**
 * Mapper for the entity WcInsuranceType and its DTO WcInsuranceTypeDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface WcITMapper extends EntityMapper<WcITDTO, WcInsuranceType> {


    WcITDTO toDto(WcInsuranceType wcInsuranceType);

    default WcInsuranceType fromId(Long id) {
        if (id == null) {
            return null;
        }
        WcInsuranceType wcInsuranceType = new WcInsuranceType();
        wcInsuranceType.setId(id);
        return wcInsuranceType;
    }
}
